﻿using System;
using System.ComponentModel.DataAnnotations;

namespace K9Nano.Domain
{
    public interface ICreationAudited: IAudited
    {
        Guid? CreatorUserId { get; set; }
        DateTimeOffset CreationTime { get; set; }
    }

    public class CreationAuditedEntity : Entity, ICreationAudited
    {
        public virtual Guid? CreatorUserId { get; set; }
        [Required]
        public virtual DateTimeOffset CreationTime { get; set; }
    }
}